import Vue from 'vue'
import apis from './apis'
const vm = new Vue()
// 获取菜单列表接口
const getInfoList = data => vm.$http({
  ...apis.ORDERSLIST,
  data: {
    data: {
      ...data,
      condition: {
        "nodeCode": "",
        "includeChildren": false,
        "attrCode": "",
        ...data.condition
      }
    }
  }
})


const getInfo = data => vm.$http({
  ...apis.INFO,
  data: {}
})

const getIconImg = data => vm.$http({
  ...apis.GETICONIMG,
  data: {}
})
const save = data => vm.$http({
  ...apis.SAVE,
  data: data
})
const addUserShare = data => vm.$http({
  ...apis.ADDUSERSHARE,
  data: {}
})
const queryUserPrizeList = data => vm.$http({
  ...apis.QUERYUSERPRIZELIST,
  data: {}
})
const queryLeadsktop = data => vm.$http({
  ...apis.LEADSKTOP,
  data
})
const operation = data => vm.$http({
  ...apis.OPERATION,
  data: {}
})
const GETYEARLYREPORT = data => vm.$http({
  ...apis.GETYEARLYREPORT,
  data
})
const GENERATEFLIGHT = data => vm.$http({
  ...apis.GENERATEFLIGHT,
  data
})
export {
  getInfoList,
  getInfo,
  getIconImg,
  save,
  addUserShare,
  queryUserPrizeList,
  queryLeadsktop,
  operation,
  GETYEARLYREPORT,
  GENERATEFLIGHT
}